<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>表单作业答案</title>
</head>
<body>

<h1>欢迎注册</h1>
<table border="1px">
<form action="#">
  <tr>
    <td><label for="uname">用户名:</label></td>
    <td><input type="text" name="username" id="uname"></td>
  </tr>
  <tr>
    <td><label for="pword" >密码:</label> </td>
    <td><input type="password" name="password" id="pword" ></td>
  </tr>
  <tr>
    <td>性别:</td>
    <td>
      <input type="radio" name="gender" value="1">男
      <input type="radio" name="gender" value="0">女
    </td>
  </tr>
  <tr>
    <td>爱好:</td>
    <td>
      <input type="checkbox" name="like" value="cy">抽烟
      <input type="checkbox" name="like" value="hj">喝酒
      <input type="checkbox" name="like" value="tt">烫头
    </td>
  </tr>
  <tr>
    <td><label for="address">地址:</label> </td>
    <td><input type="text" name="address" id="address"></td>
  </tr>
  <tr>
    <td>生日:</td>
    <td><input type="date" name="dir"></td>
  </tr>
  <tr>
    <td><label for="ph">靓照:</label> </td>
    <td><input type="file" name="file" id="ph"></td>
  </tr>
  <tr>
    <td>所在地:</td>
    <td>
      <select>
        <option value="bj">上海</option>
        <option value="bj" selected>北京</option>
        <option value="bj">长沙</option>
      </select>
    </td>
  </tr>
  <tr style="text-align: center">
    <td colspan="2">
      <input type="checkbox" name="ok" value="ok" id="ok">
      <label for="ok">我同意相关的服务协议</label>
    </td>
  </tr>
  <tr style="text-align: center">
    <td colspan="2"><input type="submit" value="注册"></td>
  </tr>

</form>
</table>
</body>
</html>